package com.ocom.payconfig.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityDishesPrice;
import com.ocom.common.pojo.payconfig.MachPriceVo;
import com.ocom.common.request.payconfig.GetChangeDishesListRequest;
import com.ocom.common.resp.Result;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface DishesPriceService extends IService<EntityDishesPrice> {
    List<EntityDishesPrice> selectDishesPriceList(Long comId, Long merchId, List<Integer> dishesIds);

    List<EntityDishesPrice> getDishesPriceList(Long comId, Integer dishesId, Integer merchId);

    EntityDishesPrice selectPriceDishesInfo(Long comId, JSONObject jsonObject);

    boolean insertDishesPrice(Long comId, EntityDishesPrice dishesPrice);

    boolean updateDishesPrice(Long comId, EntityDishesPrice dishesPrice);

    boolean removeDishesPrice(Long comId, JSONObject jsonObject);

    List<EntityDishesPrice> getDishesAllDownload(Long comId, Integer merchId);

    List<EntityDishesPrice> getDishesPrice(Long companyId, Integer merchId,Integer pointId);

    List<MachPriceVo>  getMqttPrices(Long companyId,List<Integer> calssIds);

    Result getChangeDishesList(Long companyId,GetChangeDishesListRequest request);
}
